package bookmanage;


import bookmanage.Opreation.*;

import java.util.Scanner;

//普通用户
public class NormalUser extends User {
    public NormalUser() {
        this.operations =new IOperation[]{
           new ExitOperation(),
                new DisplayOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("=======================");
        System.out.println("欢迎你，尊敬的用户"+ this.getName()+"!");
        System.out.println("1. 查看书籍列表");
        System.out.println("2. 查看指定书籍");
        System.out.println("3. 借阅书籍");
        System.out.println("4. 归还书籍");
        System.out.println("0. 退出系统");
        System.out.println("=======================");
        System.out.println("请输入选项：");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
